<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>

<%@page import="java.util.ArrayList" %>
<%@page import="java.util.List" %>


<%@page import="com.liferay.portal.kernel.util.StringBundler"%>
<%@page import="com.liferay.portal.kernel.configuration.Filter"%>
<%@page import="com.liferay.portal.kernel.util.GetterUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.model.Layout"%>
<%@page import="com.liferay.portal.model.LayoutConstants"%>
<%@page import="com.liferay.portal.service.LayoutLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.permission.LayoutPermissionUtil"%>
<%@page import="com.liferay.portal.util.PortalUtil"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys" %>
<%@page import="com.liferay.portal.theme.ThemeDisplay" %>
<%@page import="com.liferay.portal.model.Layout" %>
<%@page import="com.liferay.portal.kernel.util.WebKeys" %>
<%@ page import="org.apache.commons.logging.Log" %>
<%@ page import="org.apache.commons.logging.LogFactory" %>


<portlet:defineObjects />

<%!
private static Log log = LogFactory.getLog("docroot.html.simplenavigation.view.jsp");// LogFactoryUtil.getLog("portal-web.docroot.html.common.error.jsp");
%>


<%

ThemeDisplay themeDisplay = (ThemeDisplay) request
.getAttribute(WebKeys.THEME_DISPLAY);


Layout layout = themeDisplay.getLayout();

%>


<div id="menu">
 	
	<div> 
	
		<%
		long plidapp = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/applications").getPlid(); 
		%> 
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidapp %>" var="app">
		</liferay-portlet:renderURL>
		
 		<a class="mt"" href="<%= app %>">	Application	</a>
 	
	 	<%
	 	long plidCofo = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/certificate-of-occupancy").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid='<%= plidCofo %>' var="cofoURL">
			<portlet:param name="application" value="certification" />
		</liferay-portlet:renderURL>
 	
 		<a href=" <%=cofoURL %>">Certificate Of Occupancy</a>
 	
 	
	 	<%
	 	long plidRecofo = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/re-certificate-of-occupancy").getPlid();
	 	%>
	 	
	 	<liferay-portlet:renderURL portletName="" plid="<%= plidRecofo %>" var="recofoURL" >
	 		<portlet:param name="application" value="re-certification" />
	 	</liferay-portlet:renderURL>
	 	
  		<a href="<%= recofoURL %> ">Re-Certification of Certificate Of Occupancy</a> 
	 	
	 		
	 	<%
		 long plidStateLand = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/stateland").getPlid();
	 	%>
	 	
	 	<liferay-portlet:renderURL portletName="" plid="<%= plidStateLand %>" var="plidStateLandURL" >
	 		<portlet:param name="application" value="stateLand" />
	 	</liferay-portlet:renderURL>
	 	
  	<a href="<%= plidStateLandURL %> ">Application for State Land</a> 
	 	
	 	
	</div>
	
	<div>	
	
		<%
	 	long plidMgtProfile = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/manage-profile").getPlid();
	 	%>
	 	
	 	<liferay-portlet:renderURL portletName="" plid="<%= plidMgtProfile %>" var="mgtProfile" >
	 	</liferay-portlet:renderURL>
		
		
		
		
		<%
	 	long plidLkProf = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/link-properties").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidLkProf %>" var="lkprof">
		</liferay-portlet:renderURL>
		
		<%
		long plidacctmgt = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/account-management").getPlid(); 
		%> 
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidacctmgt %>" var="acctmgt">
		</liferay-portlet:renderURL>
		
		<a href="<%= acctmgt %>" class="mt">Account Management</a>
    <a href="<%= mgtProfile %>">Manage Profile</a> 
    <a href="<%= lkprof %>">Link Properties</a> 
	</div>
	
	<div>
		
		<%
	 	long plidPayments = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/payments").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidPayments %>" var="payments">
	 		<portlet:param name="page" value="home" />
		</liferay-portlet:renderURL>
		
		<%
	 	long plidTransHist = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/transaction-history").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidTransHist %>" var="transhist">
		</liferay-portlet:renderURL>
		
		<%
	 	long plidTrans = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/transactions").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidTrans %>" var="trans">
		</liferay-portlet:renderURL>
		
		<%
	 	long plidCalculator = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/transaction-calculator").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidCalculator %>" var="calculator">
		</liferay-portlet:renderURL>
		
		<a href="<%= trans %>" class="mt">Transactions</a> 
		<a href="<%= payments %> ">Payments</a> 
		<a href=" <%= transhist %> ">Transaction History</a>
		<a href=" <%= calculator %> ">Transaction Calculator</a>
	</div>
	
	<div>
	
		<%
	 	long plidDownloads = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/downloads").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidDownloads %>" var="downloads">
		</liferay-portlet:renderURL>
		
		<%
	 	long plidMsgs = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/messages").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidMsgs %>" var="msgs">
		</liferay-portlet:renderURL>
		
		<%
	 	long plidCommunications = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/communications").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidCommunications %>" var="comm">
		</liferay-portlet:renderURL>
		
		<%
	 	long plidfaq = LayoutLocalServiceUtil.getFriendlyURLLayout(themeDisplay.getScopeGroupId(), true, "/faq").getPlid();
	 	%>
	 	<liferay-portlet:renderURL portletName='' plid="<%= plidfaq %>" var="faq">
		</liferay-portlet:renderURL>
		
    <a href="<%= comm %>" class="mt">Communications</a>
    <a href=" <%= downloads %>">Downloads</a> 
    <a href=" <%= msgs %>">Messages</a> 
    <a href=" <%= faq %>" > Frequently Asked Questions (FAQ)</a>
 	</div>
</div>